import request from '@/utils/request'

// 获取列表
export function getAdvmsterList(params) {
  return request({
    url: '/manager/custom/customIndex',
    method: 'get',
    params
  })
}

// 编辑
export function editInfo(data) {
  return request({
    url: '/manager/custom/editInfo',
    method: 'post',
    data
  })
}

// 充值
export function payOrder(data) {
  return request({
    url: '/manager/custom/pay',
    method: 'post',
    data
  })
}

// 驳回
export function checkStatusClose(data) {
  return request({
    url: '/manager/custom/checkStatusClose',
    method: 'post',
    data
  })
}

// 审核通过
export function checkStatusOpen(data) {
  return request({
    url: '/manager/custom/checkStatusOpen',
    method: 'post',
    data
  })
}

// 获取info信息
export function userInfo(data) {
  return request({
    url: '/manager/custom/userInfo',
    method: 'post',
    data
  })
}


// 获取广告主token
export function getCustomToken(params) {
  return request({
    url: '/manager/api/getCustomToken',
    method: 'get',
    params
  })
}
//广告主管理导出
export function reqCustomIndexExport(data) {
  return request({
    url: '/manager/custom/customIndexExport',
    method: 'post',
    data: data,
  })
}
